package org.locker.domain.bo;

import org.locker.domain.DeviceUploadLog;
import org.locker.common.mybatis.core.domain.BaseEntity;
import org.locker.common.core.validate.*;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

import java.util.Date;

/**
 * 日志上传记录业务对象 lk_device_upload_log
 *
 * @author winnie
 * @date 2023-10-14
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = DeviceUploadLog.class, reverseConvertGenerate = false)
public class DeviceUploadLogBo extends BaseEntity {

    /**
     * 操作ID
     */
    @NotNull(message = "操作ID不能为空", groups = { EditGroup.class })
    private Long deviceUploadLogId;

    /**
     * 场地ID
     */
    @NotNull(message = "场地ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long positionId;

    /**
     * 设备号
     */
    @NotBlank(message = "设备号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String deviceNo;

    /**
     * 日志类型
     */
    @NotBlank(message = "日志类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String logType;

    /**
     * 文件目录
     */
    @NotBlank(message = "文件目录不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fileUrl;

    /**
     * 文件名称
     */
    @NotBlank(message = "文件名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fileName;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    private Date createTime;

}
